package day16_Runnable.作业.作业2;

public class Test {
    public static void main(String[] args) throws Exception{
        Printer p = new Printer();//创建打印机对象
        NumberPrinter t1 = new NumberPrinter(p);//创建线程对象
        LetterPrinter t2 = new LetterPrinter(p);//创建线程对象
        t1.start();
        t2.start();//启动线程
    }
}
